package stars.converters;

import stars.starSystems.StarSystemModel;

import com.thoughtworks.xstream.converters.Converter;
import com.thoughtworks.xstream.converters.MarshallingContext;
import com.thoughtworks.xstream.converters.UnmarshallingContext;
import com.thoughtworks.xstream.io.HierarchicalStreamReader;
import com.thoughtworks.xstream.io.HierarchicalStreamWriter;


public class StarSystemModelConverter implements Converter {

	@SuppressWarnings("rawtypes")
	public boolean canConvert(Class clazz) {		
		return clazz.equals(StarSystemModel.class);
	}

	public void marshal(Object obj, HierarchicalStreamWriter writer,
			MarshallingContext context) {
		
		StarSystemModel sysModel = (StarSystemModel) obj;
		writer.startNode(arg0)
		
	}

	public Object unmarshal(HierarchicalStreamReader reader,
			UnmarshallingContext context) {
		
		return null;
	}

}

//http://xstream.codehaus.org/converter-tutorial.html
//http://xstream.codehaus.org/graphs.html